//新闻表
var Waterline = require('waterline');
var uuid = require('node-uuid');

module.exports = Waterline.Collection.extend({
    //identity: 'tb_user',//数据集合的名字 在mysql叫表
    tableName: 'acl_user',
    connection: 'localMongo', //设定哪个连接
    schema: true, //是否强制模式
    attributes: { //字段设置
        id: {
            type: 'string',
            primaryKey: true,
            defaultsTo: function() {
                return uuid.v4();
            }
        },
        name: {
            type: 'string',
            columnName: 'name'
        },
        password: {
            type: 'string',
            columnName: 'password'
        }
    }

});